/* *******************************************************************
 *  Music.cpp
 *  CheeseBurgerParadise
 * *******************************************************************
*/

#ifndef _MUSIC_H__
#define _MUSIC_H__

// OpenAL includes
#if defined(_MSC_VER)
#include <alut.h>
#else
#include <AL/al.h>
#include <AL/alc.h>
#include <AL/alut.h>
#endif
class MusicPlayer;

class MusicPlayer
{
public:
	
	static void init(int & argc, char ** argv);
	static bool openWAVFile(const char * filename);
	static void killAllData();

	static bool playSound();
	static bool stopSound();
	
private:
	
	// Buffers hold sound data.
	static ALuint Buffer;
	
	// Sources are points emitting sound.
	static ALuint Source;

};

#endif
